cmake_minimum_required(VERSION 3.16)
project(qt_event_signal VERSION 1.0 LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(QT NAMES Qt6 COMPONENTS Core REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core REQUIRED)
include_directories(${TCOURSE_INTERFACEDIR})
set(PRJ_SOURCES
    main.cpp
       testevent.h
       testevent.cpp
       testobj.h
       testobj.cpp
)
#############Target======================

add_executable(qt_event_signal
    ${PRJ_SOURCES}
)
target_link_libraries(qt_event_signal Qt${QT_VERSION_MAJOR}::Core)

